<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 14.11.2014
 * Time: 14:44
 */

namespace Pinenut\Test\Mocks;


class Cookie extends \Pinenut\Cookie {
	protected static $storage;

	public static function setValue($key, $value)
	{
		static::$storage[$key] = $value;
	}

	public static function getValue($key, $default = null)
	{
		return isset(static::$storage[$key]) ? static::$storage[$key] : $default;
	}

	public function unsetValue($key)
	{
		unset (static::$storage[$key]);
	}
} 